import { createRouter, createWebHistory } from 'vue-router'
import myIndex from './view/myIndex/myIndex.vue'
import blogIndex from './view/blogIndex/blogList.vue'

const routes = [
  {
    path: '/',
    name: 'blogIndex',
    component: blogIndex
  },
  {
    path: '/myIndex',
    name: 'myIndex',
    component: myIndex
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
